import axios from '@/request'

export function createUserLevelApi(data) {
  return axios.post("/admin/user_level", data)
}

export function updateUserLevelApi(id, data) {
  return axios.post("/admin/user_level/" + id, data)
}

export function getUserLevelListApi(page) {
  return axios.get("/admin/user_level/" + page)
}

export function updateUserLevelStatusApi(id, status) {
  return axios.post(`/admin/user_level/${id}/update_status`, { status })
}

export function deleteUserLevelApi(ids) {
  return axios.post(`/admin/user_level/${ids[0]}/delete`)
}